package com.example.forum.utils;

import java.util.UUID;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lily
 * Date: 2024-09-24
 * Time: 16:41
 */
public class UUIDUtil {
    /**
     * 生成一个32的UUID
     *
     * @return UUID
     */
    public static String UUID_32(){
        return UUID.randomUUID().toString().replace("-","");
    }
    /**
     * 生成一个标准的UUID
     *
     * @return UUID
     */
    public static String UUID_36(){
        return UUID.randomUUID().toString();
    }
}
